<script setup>
import Goods from './components/Goods.vue'
import TestVue from './components/TestVue.vue'

import {ref, provide} from 'vue'
const name = ref('魅族')
const price = ref(399)
// provide(key, value)
provide('message', name)
function test(a) {
    console.log(a)
}

function change(msg) {
    console.log("change ", msg);
}
</script>

<template>
    <!--父组件中 监听事件的发生-->
    <!--<goods :name="name" :price="price" @name="test"/>-->
    <TestVue name="zs" age="20" @change="change"/>
</template>

<style scoped>
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}
</style>
